package com.rui.patterns.stategy;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Client
 * @createTime : [2022/2/23 17:32]
 * @description : [描述该类的功能]
 */

public class Client {
    public static void main(String[] args) {
        //春节来了,使用春节促销活动
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.salesManShow();

        System.out.println("------------------");

        //中秋节促销活动
        salesMan.setStrategy(new StrategyB());
        salesMan.salesManShow();

        System.out.println("------------------");

        //圣诞节到了
        salesMan.setStrategy(new StrategyC());
        salesMan.salesManShow();
    }
}
